-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add external plugin to build engine #2994
Conversation
cb777b2
to
f0ef049
Compare
bc8e94f
to
436279f
Compare
e95d158
to
e91dea9
Compare
|
||
runCtx, cancel := context.WithCancel(ctx) | ||
|
||
cmdErr := make(chan error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't an errgroup be preferable here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it'd work, but I might be missing how to do it.
The ping channel closes when ping succeeds or fails. The cmd chan closes if the plugin exits. In normal cases the plugin won't exit until plugin.Kill()
is called, but can happen early for whatever reason.
So the select
is looking for whichever of those 2 happens first, not waiting for both channels.
43dff70
to
8e32669
Compare
# Conflicts: # backend/protos/xyz/block/ftl/v1/language/mixins.go # Conflicts: # frontend/cli/main.go
8e32669
to
352df08
Compare
Adds
languageplugin.externalPlugin
for working with plugins over gRPC. This PR does not include any non-test implementations.Part of #2452